<template>
  <div>
    验证码:  <img v-if="bol" :src="$baseUrl+'/captcha?type=login'" alt="" @click="reloadCode">
  </div>
</template>
<script>

// mixin
// Vue.prototype
export default {
  data() {
    return {
      bol: true
    }
  },
  methods: {
    reloadCode() {
      this.bol = false
      this.$nextTick(() => {
        this.bol = true
      })
    }
  }
}
</script>
<style>
</style>
